<?php

use think\migration\Seeder;

class SystemUser extends Seeder
{
    public function run()
    {
        $table = $this->table('system_user');
        $rows  = [
            [
                // step1：用户信息
                'username'        => 'admin',
                'password'        => md5('123456'),
                'mobile'          => '18903467858',

                // step2:登录信息
                'last_login_time' => date('Y-m-d H:i:s', time()),
                'last_login_ip'   => '127.0.0.1',
                'auth'            => 1,

                // step3:状态信息
                'status'          => 1,

                // step4:插入时间
                'create_time'     => date('Y-m-d H:i:s', time()),
                'delete_time'     => 0,
            ],
            [
                // step1：用户信息
                'username'        => 'admin2',
                'password'        => md5('123456'),
                'mobile'          => '18803415820',

                // step2:登录信息
                'last_login_time' => date('Y-m-d H:i:s', time()),
                'last_login_ip'   => '127.0.0.1',
                'auth'            => 0,

                // step3:状态信息
                'status'          => 1,

                // step4:插入时间
                'create_time'     => date('Y-m-d H:i:s', time()),
                'delete_time'     => 0,
            ],
        ];
        $table->insert($rows)->save();
    }
}